<meta charset="utf-8" />

 <p style="color:red;font-size:100px">尝试点击一下页面！</p>

<script>
  // 为什么此处需要window.onload?  
  window.onload = function(){
    document.onclick = function(){
        var imgEle = document.createElement("img");
        imgEle.src = "1.jpeg";
        document.body.appendChild(imgEle);
    };
  };
</script>